<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-uh.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.mysqlnduhconnection.html">MysqlndUhConnection</a></div>
 <div class="up"><a href="book.mysqlnd-uh.html">mysqlnd_uh</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqlnd-uh.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  Most of the constants refer to details of the MySQL Client Server Protocol.
  Please, refer to the MySQL reference manual to learn about their meaning.
  To avoid content duplication, only short descriptions are given.
 </p>
 <p class="para">
  <em class="emphasis"><span class="methodname"><a href="mysqlnduhconnection.simplecommand.html" class="methodname">MysqlndUhConnection::simpleCommand()</a></span> related</em>
 </p>
 <p class="para">
  The following constants can be used to detect what command is to be send
  through <span class="methodname"><a href="mysqlnduhconnection.simplecommand.html" class="methodname">MysqlndUhConnection::simpleCommand()</a></span>.
 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-sleep">
     <strong><code>MYSQLND_UH_MYSQLND_COM_SLEEP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_SLEEP.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-quit">
     <strong><code>MYSQLND_UH_MYSQLND_COM_QUIT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_QUIT.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-init-db">
     <strong><code>MYSQLND_UH_MYSQLND_COM_INIT_DB</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_INIT_DB.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-query">
     <strong><code>MYSQLND_UH_MYSQLND_COM_QUERY</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_QUERY.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-field-list">
     <strong><code>MYSQLND_UH_MYSQLND_COM_FIELD_LIST</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_FIELD_LIST.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-create-db">
     <strong><code>MYSQLND_UH_MYSQLND_COM_CREATE_DB</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_CREATE_DB.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-drop-db">
     <strong><code>MYSQLND_UH_MYSQLND_COM_DROP_DB</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_DROP_DB.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-refresh">
     <strong><code>MYSQLND_UH_MYSQLND_COM_REFRESH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_REFRESH.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-shutdown">
     <strong><code>MYSQLND_UH_MYSQLND_COM_SHUTDOWN</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_SHUTDOWN.
     </span>
    </dd>

   
    
    <dt id="constant.mysqlnd-uh-mysqlnd-com-statistics">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STATISTICS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STATISTICS.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-process-info">
     <strong><code>MYSQLND_UH_MYSQLND_COM_PROCESS_INFO</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_PROCESS_INFO.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-connect">
     <strong><code>MYSQLND_UH_MYSQLND_COM_CONNECT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_CONNECT.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-process-kill">
     <strong><code>MYSQLND_UH_MYSQLND_COM_PROCESS_KILL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_PROCESS_KILL.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-debug">
     <strong><code>MYSQLND_UH_MYSQLND_COM_DEBUG</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_DEBUG.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-ping">
     <strong><code>MYSQLND_UH_MYSQLND_COM_PING</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_PING.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-time">
     <strong><code>MYSQLND_UH_MYSQLND_COM_TIME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_TIME.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-delayed-insert">
     <strong><code>MYSQLND_UH_MYSQLND_COM_DELAYED_INSERT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_DELAYED_INSERT.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-change-user">
     <strong><code>MYSQLND_UH_MYSQLND_COM_CHANGE_USER</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_CHANGE_USER.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-binlog-dump">
     <strong><code>MYSQLND_UH_MYSQLND_COM_BINLOG_DUMP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_BINLOG_DUMP.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-table-dump">
     <strong><code>MYSQLND_UH_MYSQLND_COM_TABLE_DUMP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_TABLE_DUMP.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-connect-out">
     <strong><code>MYSQLND_UH_MYSQLND_COM_CONNECT_OUT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_CONNECT_OUT.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-register-slaved">
     <strong><code>MYSQLND_UH_MYSQLND_COM_REGISTER_SLAVED</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_REGISTER_SLAVED.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-stmt-prepare">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STMT_PREPARE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STMT_PREPARE.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-stmt-execute">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STMT_EXECUTE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STMT_EXECUTE.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-stmt-send-long-data">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STMT_SEND_LONG_DATA</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STMT_SEND_LONG_DATA.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-stmt-close">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STMT_CLOSE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STMT_CLOSE.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-stmt-reset">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STMT_RESET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STMT_RESET.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-set-option">
     <strong><code>MYSQLND_UH_MYSQLND_COM_SET_OPTION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_SET_OPTION.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-stmt-fetch">
     <strong><code>MYSQLND_UH_MYSQLND_COM_STMT_FETCH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_STMT_FETCH.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-daemon">
     <strong><code>MYSQLND_UH_MYSQLND_COM_DAEMON</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_DAEMON.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-com-end">
     <strong><code>MYSQLND_UH_MYSQLND_COM_END</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol command: COM_END.
     </span>
    </dd>

   
  </dl>

 </p>
 <p class="para">
  The following constants can be used to analyze the <em>ok_packet</em>
  argument of <span class="methodname"><a href="mysqlnduhconnection.simplecommand.html" class="methodname">MysqlndUhConnection::simpleCommand()</a></span>.
 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-greet-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_GREET_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: greeting.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-auth-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_AUTH_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: authentication.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-ok-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_OK_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: OK.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-eof-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_EOF_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: EOF.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-cmd-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_CMD_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: command.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-rset-header-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_RSET_HEADER_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: result set header.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-rset-fld-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_RSET_FLD_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: resultset field.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-row-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_ROW_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: row.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-stats-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_STATS_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: stats.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prepare-resp-packet">
     <strong><code>MYSQLND_UH_MYSQLND_PREPARE_RESP_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: prepare response.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-chg-user-resp-packet">
     <strong><code>MYSQLND_UH_MYSQLND_CHG_USER_RESP_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      MySQL Client Server protocol packet: change user response.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-prot-last">
     <strong><code>MYSQLND_UH_MYSQLND_PROT_LAST</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      No practical meaning. Last entry marker of internal C data structure list.
     </span>
    </dd>

   
  </dl>

 </p>

 <p class="para">
  <em class="emphasis"><span class="methodname"><a href="mysqlnduhconnection.close.html" class="methodname">MysqlndUhConnection::close()</a></span> related</em>
 </p>
 <p class="para">
  The following constants can be used to detect why a connection has been
  closed through <em>MysqlndUhConnection::close()</em>.
 </p>
 <p class="para">
  <dl>

    
    <dt id="constant.mysqlnd-uh-mysqlnd-close-explicit">
     <strong><code>MYSQLND_UH_MYSQLND_CLOSE_EXPLICIT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      User has called mysqlnd to close the connection.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-close-implicit">
     <strong><code>MYSQLND_UH_MYSQLND_CLOSE_IMPLICIT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Implicitly closed, for example, during garbage connection.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-close-disconnected">
     <strong><code>MYSQLND_UH_MYSQLND_CLOSE_DISCONNECTED</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Connection error.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-close-last">
     <strong><code>MYSQLND_UH_MYSQLND_CLOSE_LAST</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      No practical meaning. Last entry marker of internal C data structure list.
     </span>
    </dd>

   
  </dl>

 </p>

 <p class="para">
  <em class="emphasis">MysqlndUhConnection::setServerOption() related</em>
 </p>
 <p class="para">
  The following constants can be used to detect which option is set through
  <em>MysqlndUhConnection::setServerOption()</em>.
 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-uh-server-option-multi-statements-on">
     <strong><code>MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_ON</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: enables multi statement support.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-server-option-multi-statements-off">
     <strong><code>MYSQLND_UH_SERVER_OPTION_MULTI_STATEMENTS_OFF</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: disables multi statement support.
     </span>
    </dd>

   
  </dl>

 </p>

 <p class="para">
  <em class="emphasis"><span class="methodname"><a href="mysqlnduhconnection.setclientoption.html" class="methodname">MysqlndUhConnection::setClientOption()</a></span> related</em>
 </p>
 <p class="para">
  The following constants can be used to detect which option is set through
  <span class="methodname"><a href="mysqlnduhconnection.setclientoption.html" class="methodname">MysqlndUhConnection::setClientOption()</a></span>.
 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-uh-mysqlnd-option-opt-connect-timeout">
     <strong><code>MYSQLND_UH_MYSQLND_OPTION_OPT_CONNECT_TIMEOUT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: connection timeout.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-option-opt-compress">
     <strong><code>MYSQLND_UH_MYSQLND_OPTION_OPT_COMPRESS</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: whether the MySQL compressed protocol is to be used.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-option-opt-named-pipe">
     <strong><code>MYSQLND_UH_MYSQLND_OPTION_OPT_NAMED_PIPE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: named pipe to use for connection (Windows).
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-option-init-command">
     <strong><code>MYSQLND_UH_MYSQLND_OPTION_INIT_COMMAND</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: init command to execute upon connect.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-read-default-file">
     <strong><code>MYSQLND_UH_MYSQLND_READ_DEFAULT_FILE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: MySQL server default file to read upon connect.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-read-default-group">
     <strong><code>MYSQLND_UH_MYSQLND_READ_DEFAULT_GROUP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: MySQL server default file group to read upon connect.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-set-charset-dir">
     <strong><code>MYSQLND_UH_MYSQLND_SET_CHARSET_DIR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: charset description files directory.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-set-charset-name">
     <strong><code>MYSQLND_UH_MYSQLND_SET_CHARSET_NAME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: charset name.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-local-infile">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_LOCAL_INFILE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: Whether to allow <em>LOAD DATA LOCAL INFILE</em> use.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-protocol">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_PROTOCOL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: supported protocol version.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-shared-memory-base-name">
     <strong><code>MYSQLND_UH_MYSQLND_SHARED_MEMORY_BASE_NAME</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: shared memory base name for shared memory connections.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-read-timeout">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_READ_TIMEOUT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: connection read timeout.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-write-timeout">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_WRITE_TIMEOUT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: connection write timeout.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-use-result">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_USE_RESULT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: unbuffered result sets.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-use-remote-connection">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_USE_REMOTE_CONNECTION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Embedded server related.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-use-embedded-connection">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_USE_EMBEDDED_CONNECTION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Embedded server related.
     </span>
    </dd>

   
      
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-guess-connection">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_GUESS_CONNECTION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      TODO
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-set-client-ip">
     <strong><code>MYSQLND_UH_MYSQLND_SET_CLIENT_IP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
       TODO
     </span>
    </dd>

   
  
    <dt id="constant.mysqlnd-uh-mysqlnd-secure-auth">
     <strong><code>MYSQLND_UH_MYSQLND_SECURE_AUTH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      TODO
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-report-data-truncation">
     <strong><code>MYSQLND_UH_MYSQLND_REPORT_DATA_TRUNCATION</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: Whether to report data truncation.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-reconnect">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_RECONNECT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: Whether to reconnect automatically.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-verify-server-cert">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_VERIFY_SERVER_CERT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: TODO
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-net-cmd-buffer-size">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_NET_CMD_BUFFER_SIZE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: mysqlnd network buffer size for commands.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-net-read-buffer-size">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_NET_READ_BUFFER_SIZE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: mysqlnd network buffer size for reading from the server.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-key">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_KEY</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: SSL key.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-cert">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_CERT</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: SSL certificate.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-ca">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_CA</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: SSL CA.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-capath">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_CAPATH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: Path to SSL CA.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-cipher">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_CIPHER</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: SSL cipher.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-ssl-passphrase">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_SSL_PASSPHRASE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: SSL passphrase.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-server-option-plugin-dir">
     <strong><code>MYSQLND_UH_SERVER_OPTION_PLUGIN_DIR</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: server plugin directory.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-server-option-default-auth">
     <strong><code>MYSQLND_UH_SERVER_OPTION_DEFAULT_AUTH</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: default authentication method.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-server-option-set-client-ip">
     <strong><code>MYSQLND_UH_SERVER_OPTION_SET_CLIENT_IP</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
       TODO
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-max-allowed-packet">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_MAX_ALLOWED_PACKET</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: maximum allowed packet size. Available as of <em>PHP 5.4.0</em>.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-auth-protocol">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_AUTH_PROTOCOL</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: TODO. Available as of <em>PHP 5.4.0</em>.
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-mysqlnd-opt-int-and-float-native">
     <strong><code>MYSQLND_UH_MYSQLND_OPT_INT_AND_FLOAT_NATIVE</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Option: make mysqlnd return integer and float columns as long even
      when using the MySQL Client Server text protocol. Only
      available with a custom build of mysqlnd.
     </span>
    </dd>

   
  </dl>

 </p>

 <p class="para">
  <em class="emphasis">Other</em>
 </p>
 <p class="para">
  The plugins version number can be obtained using
  <strong><code>MYSQLND_UH_VERSION</code></strong> or
  <strong><code>MYSQLND_UH_VERSION_ID</code></strong>.
  <strong><code>MYSQLND_UH_VERSION</code></strong>
  is the string representation of the numerical version number
  <strong><code>MYSQLND_UH_VERSION_ID</code></strong>, which is an integer such as 10000.
  Developers can calculate the version number as follows.
 </p>
 <p class="para">
   <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version (part)</th>
      <th>Example</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>Major*10000</td>
      <td>1*10000 = 10000</td>
     </tr>

     <tr>
      <td>Minor*100</td>
      <td>0*100 = 0</td>
     </tr>

     <tr>
      <td>Patch</td>
      <td>0 = 0</td>
     </tr>

     <tr>
      <td><strong><code>MYSQLND_UH_VERSION_ID</code></strong></td>
      <td>10000</td>
     </tr>

    </tbody>
   
  </table>

 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-uh-version">
     <strong><code>MYSQLND_UH_VERSION</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Plugin version string, for example, "<span class="quote">1.0.0-alpha</span>".
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-uh-version-id">
     <strong><code>MYSQLND_UH_VERSION_ID</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Plugin version number, for example, 10000.
     </span>
    </dd>

   
  </dl>

 </p>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-uh.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.mysqlnduhconnection.html">MysqlndUhConnection</a></div>
 <div class="up"><a href="book.mysqlnd-uh.html">mysqlnd_uh</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
